package org.hefan.hrm.util;

/**
 * 对一个分组统计聚合结果进行封装
 *      Map也能存放多个，就是不同key，而且前台可以直接通过key获取
 *     有多个，并且前台根据名称来获取
 *     aggsVoData.put("tenantAggs",AggsVo)
 *     aggsVoData.put("CourseTypeAggs",AggsVo)
 */
public class AggsVo {
    private Long id; //tenantId courseTypeId ....
    private String name; //tenantName courseTypeName ...
    private Long count;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "AggsVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", count=" + count +
                '}';
    }

    public AggsVo(Long id, String name, Long count) {
        this.id = id;
        this.name = name;
        this.count = count;
    }

    public AggsVo() {
    }
}